**Author: Abeberese, Barnwal, Chaurey, Mukherjee
**This do-file will generate Table A10
**Date: May 2021

version 15
clear
capture log close
set matsize 4000
set scheme s2mono, perm



**Set directories
*Add personal root path for your machine directory

global ROOT "/Users/rchaurey/Dropbox/Indonesia Firms/DataFolderRESTAT/"
global dofiles "${ROOT}/Code"
global data "${ROOT}/Input"
global output "${ROOT}/Output/"


****************************************************************************************************************************************************

use "${data}/kppodA10.dta", clear

****Final tables for paper*** REStat


foreach v of varlist localgov_noinvgrowth  localgov_uncertainty localgov_businessexpense  donation_lg z_score_lg {
reghdfe `v'  mayor_appyr, absorb(prov )  cluster(district)
outreg2 using "${output}TableA10.xls", ///
keep(mayor_appyr)   addtext(province FE, Yes,  greater than or equal to 20, no) append

reghdfe `v'  mayor_appyr    if numempl >=20, absorb( prov)  cluster(district)
outreg2 using "${output}TableA10.xls", ///
keep(mayor_appyr)   addtext(province FE, Yes,  greater than or equal to 20, yes) append

}
